package dbAdapter;

import android.content.Context;
import android.database.Cursor;

public class DailyAllowance {
	public int getDailyAllowance(Context cxt){
		ProfileDBAdapter pda = new ProfileDBAdapter(cxt);
		pda.open();
		Cursor c = pda.getAllUsers();
		if(c.getCount() == 0)
		{
			return 2000;
		}
		c.moveToFirst();
		pda.close();
		return c.getInt(c.getColumnIndex("max_calorie_consumption"));
		
	}

}
